﻿using DXApplicationTangche.UC.下单MTO.Service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.下单MTO
{
    public partial class FormMTO工序及发运信息 : DevExpress.XtraEditors.XtraForm
    {
        public String detailId { get; set; }
        private ProjectInstanceSimple projectInstanceSimple = new ProjectInstanceSimple();
        public FormMTO工序及发运信息(String detailId)
        {
            InitializeComponent();
            this.detailId = detailId;
            this.projectInstanceSimple = MTO下单Service.getProjectInstanceSimplesBySaleOrderDetailId(detailId);
            this.gridControl订单发运信息.DataSource = this.projectInstanceSimple.orderShippedDTO;
            this.treeList生产工序.DataSource = this.projectInstanceSimple.projectInstanceSimpleDTOs;
            this.treeList生产工序.ExpandAll();
        }
    }
}
